from dataclasses import dataclass, field, asdict
from enum import Enum


class BuildType:
    Jail = "监狱"
    ImperialPalac = "皇宫"
    XingQing = "兴庆殿"
    JuXianGe = "聚贤阁"
    Farm = "农场"
    Brothel = "J"


@dataclass
class MapBuild:
    Type: BuildType
    BuildStart: int = field(default=0)  # 开始建造的回合
    PowerLaster: int = field(default=0)  # 最近一次发动建筑效果的回合

    def to_json(self):
        return asdict(self)
